/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xos_net.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __MSG_MAIN_MSG_MAIN_H__
#define __MSG_MAIN_MSG_MAIN_H__

namespace xos_net
{

    class msg_main
    {
    public:
        msg_main();
        ~msg_main();

    protected:
        int release_connect( xos_box::i_msg *& pMsg );
        int all_connect_stopped();
        int all_server_stopped();

        int startting();
        int start_failed();
        int startted();

        int heart();

        int stopping();
        int stopped();

    public:
        int proc( xos_box::i_msg *& pMsg );

    };

} // xos_net

#endif // __MSG_MAIN_MSG_MAIN_H__
